﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
	<head>
		<c:set var="contentPath" value="<%=request.getContextPath() %>" ></c:set>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type="text/css" href="${contentPath }/css/ext-simlink-more.css" />
		<link rel="stylesheet" type="text/css" href="${contentPath }/css/all.css" />
		<script type="text/javascript" src="${contentPath }/jslib/jquery.min.js"></script>
		<script type="text/javascript" src="${contentPath }/jslib/validate.js"></script>
		 
		<link rel="stylesheet" href="${contentPath }/css/demo.css" type="text/css">
		<link rel="stylesheet" href="${contentPath }/css/zTreeStyle/zTreeStyle.css" type="text/css">
		<script type="text/javascript" src="${contentPath }/jslib/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="${contentPath }/jslib/jquery.ztree.core-3.2.js"></script>
		<script type="text/javascript" src="${contentPath }/jslib/jquery.ztree.excheck-3.2.js"></script>
		<script type="text/javascript" src="${contentPath }/jslib/calendar/WdatePicker.js"></script>
		<title>新增员工</title>
	</head>
	<body>
		<form:form action="save.do" method="post" id="pageForm" commandName="user">
			<table width="100%" cellspacing="0"
				style="text-align: left; border-collapse: collapse;">
				<tr class="trTitlePage">
					<td class="popupTdTitle" colspan="4">
						新增员工
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd" width="100">
						姓名：
					</td>
					<td class="popupTableTdView">
						<form:input path="username" dataType="required"
							message="请输入姓名" class="textInputview"/>
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd">
						性别：
					</td>
					<td class="popupTableTdView">
						<form:input path="sex" maxlength="10" class="textInputview" />
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd">
						电话：
					</td>
					<td class="popupTableTdView">
						<form:input path="phone" maxlength="20" class="textInputview" />
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd">
						Email：
					</td>
					<td class="popupTableTdView">
						<form:input path="email" maxlength="15" class="textInputview" />
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd">
						联系地址：
					</td>
					<td class="popupTableTdView">
						<form:input path="addres" maxlength="80" class="textInputview" />
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd">
						部门：
					</td>
					<td class="popupTableTdView">
						<form:select path="department" class="textInputview">
							<form:option value="信息科">信息科</form:option>
							<form:option value="财务科">财务科</form:option>
							<form:option value="HR">HR</form:option>
							<form:option value="其它">其它</form:option>
						</form:select>
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd">
						职称：
					</td>
					<td class="popupTableTdView">
						<form:select path="post" class="textInputview">
							<form:option value="超级管理院">超级管理院</form:option>
							<form:option value="财务人员">财务人员</form:option>
							<form:option value="HR">HR</form:option>
							<form:option value="公司成员">公司成员</form:option>
						</form:select>
					</td>
				</tr>
				<tr class="tr_blank_left" height="40px">
					<td class="popupTableTd">
						入职日期：
					</td>
					<td class="popupTableTdView">
						<form:input path="createtimeStr" size="30"
							onclick="WdatePicker({readOnly:true})" class="textInputview"/>
					</td>
				</tr>
				<tr height="55px" align="center">
					<td colspan="4">
						<div class="shandow" style="height: 55px; padding-top: 13px;">
							<input type="button" class="buttonCss"
								onmouseover="this.className='buttonCss_hover'"
								onmouseout="this.className='buttonCss'" value="保存"
								onclick="javascript:save();" />
							<input type="button" class="buttonCss"
								onmouseover="this.className='buttonCss_hover'"
								onmouseout="this.className='buttonCss'" value="取消"
								onclick="javascript:document.forms[0].reset();" />
						</div>
					</td>
				</tr>
			</table>
		</form:form>
	</body>
	<script type="text/javascript">
		function save(){
			$('#pageForm').submit();
			window.close();
		}
	</script>
</html>
